package Damode1;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: 故我
 * Date: 2023-04-26
 * Time: 22:03
 */
class Dog extends Animal{
    @Override
    void cry() {
        System.out.println("汪汪"+"的声音");
    }
    @Override
    String getAnimalName() {
       String name = "柯基";
        return name;
    }
}
